{% load static %}
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>login</title>
    <link rel="stylesheet" href="{% static 'css/bootstrap-3.3.7-dist/css/bootstrap.min.css' %}">
</head>
<body>
<h1>登录</h1>
<a href="{% url 'index' %}">index</a>
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <form action="{% url 'login' %}" method="post">
                {% csrf_token %}
                <p>username:<input type="text" name="username" class="form-control"></p>
                <p>password:<input type="password" name="password" class="form-control"></p>
                <p><input type="checkbox" name="hobby" value="111">111</p>
                <p><input type="checkbox" name="hobby" value="222">222</p>
                <p><input type="checkbox" name="hobby" value="333">333</p>
                <input type="submit" class="btn btn-success btn-block">
            </form>
        </div>
    </div>
</div>
</body>
</html>